const User = require('../controllers/user');
var express = require('express');
var router = express.Router();

/* GET users listing. */
//user
router.get('/layin', User.layin);
router.get('/layout', User.layout);
router.post('/Register', User.Register);
router.post('/Sendmsg', User.Sendmsg);
router.post('/login', User.login);
router.post('/findPsw', User.findPsw);
router.get('/checkLogin', User.checkLogin);
router.post('/checkStu', User.checkStu);
router.get('/checkStuReq',User.StuRequired)//判断学生认证
// router.get('/checkAdmin',User.signinRequired,User.adminRequired)//判断权限
// router.post('/resetEmail',User.resetEmail);
// router.post('/resetPhone',User.resetPhone);
// router.post('/resetName',User.resetName);
router.get('/getUserMsg',User.getUserMsg);
// router.post('/category',User.category)//认证、年级分类
// router.post('/Udelete',User.Udelete)//删除用户
// router.post('/loadAll',User.loadAll)//加载用户数目

module.exports = router;
